from django import forms
from .models import CaseDemoUser

class RegisterForm(forms.ModelForm):
    class Meta:
        model = CaseDemoUser
        fields = ['username', 'password', 'sex', 'age', 'email']
        widgets = {
            'password': forms.PasswordInput(),  # 密码用隐藏输入框
        }
